// Code generated by mockery v2.20.2. DO NOT EDIT.

package mocks

import (
	context "context"

	grpc "google.golang.org/grpc"

	mock "github.com/stretchr/testify/mock"

	proto "gitverse.ru/synapse/kubelatte/pkg/grpc/proto"
)

// ConfigSyncClient is an autogenerated mock type for the ConfigSyncClient type
type ConfigSyncClient struct {
	mock.Mock
}

// GetNamespaces provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) GetNamespaces(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.Namespaces, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.Namespaces
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.Namespaces, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.Namespaces); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.Namespaces)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetScopes provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) GetScopes(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.Scopes, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.Scopes
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.Scopes, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.Scopes); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.Scopes)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetTemplates provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) GetTemplates(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.Templates, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.Templates
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.Templates, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.Templates); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.Templates)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetTriggers provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) GetTriggers(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.Triggers, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.Triggers
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.Triggers, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.Triggers); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.Triggers)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// LastUpdate provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) LastUpdate(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.ServerTime, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.ServerTime
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.ServerTime, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.ServerTime); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.ServerTime)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Ping provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) Ping(ctx context.Context, in *proto.EmptyMessage, opts ...grpc.CallOption) (*proto.EmptyMessage, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.EmptyMessage
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) (*proto.EmptyMessage, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) *proto.EmptyMessage); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.EmptyMessage)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.EmptyMessage, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Sync provides a mock function with given fields: ctx, in, opts
func (_m *ConfigSyncClient) Sync(ctx context.Context, in *proto.UpdateConfigEvent, opts ...grpc.CallOption) (*proto.EmptyMessage, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *proto.EmptyMessage
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *proto.UpdateConfigEvent, ...grpc.CallOption) (*proto.EmptyMessage, error)); ok {
		return rf(ctx, in, opts...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *proto.UpdateConfigEvent, ...grpc.CallOption) *proto.EmptyMessage); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*proto.EmptyMessage)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *proto.UpdateConfigEvent, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

type mockConstructorTestingTNewConfigSyncClient interface {
	mock.TestingT
	Cleanup(func())
}

// NewConfigSyncClient creates a new instance of ConfigSyncClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewConfigSyncClient(t mockConstructorTestingTNewConfigSyncClient) *ConfigSyncClient {
	mock := &ConfigSyncClient{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
